package com.hjlh.aimedical.common.handler;

import org.springframework.web.bind.annotation.RestControllerAdvice;

@RestControllerAdvice
public class GlobalExceptionHandler {

    public String handleException(Exception e){
        return "发生错误：" + e.getMessage();
    }
}
